package dispatcher.gui.event;

import dispatcher.group.gui.network.GroupDispatcherGUIObserverThread;
import messages.KillOrderMessage;

public class KillElevatorThread extends Thread {

	
	private KillOrderMessage message;
	private GroupDispatcherGUIObserverThread handler;
	
	public KillElevatorThread(KillOrderMessage message, GroupDispatcherGUIObserverThread handler){
		this.message = message;
		this.handler = handler;
	}
	
	@Override
	public void run(){
		this.handler.sendKillMessage(message);
	}
}
